class AddModelPayments < ActiveRecord::Migration
  def self.up
    create_table :payments do |t|
      t.column :category_id, :integer
      t.column :amount_paid, :float
      t.column :budget_when_paid, :float
      t.column :paid_on, :datetime
      t.column :notes, :text
      t.column :created_on, :datetime
      t.column :updated_on, :datetime
    end    
  end

  def self.down
    drop_table :payments
  end
end
